import request from '@/utils/request'

// 查询商场列表
export function listShangchang(query) {
  return request({
    url: '/lexin/shangchang/list',
    method: 'get',
    params: query
  })
}

// 查询商场详细
export function getShangchang(id) {
  return request({
    url: '/lexin/shangchang/' + id,
    method: 'get'
  })
}

// 新增商场
export function addShangchang(data) {
  return request({
    url: '/lexin/shangchang',
    method: 'post',
    data: data
  })
}

// 修改商场
export function updateShangchang(data) {
  return request({
    url: '/lexin/shangchang',
    method: 'put',
    data: data
  })
}

// 删除商场
export function delShangchang(id) {
  return request({
    url: '/lexin/shangchang/' + id,
    method: 'delete'
  })
}
